item COMMAND '"quit"' PORT CreateAminetReadMe ATTRS MUIA_Menuitem_Shortcut 'Q' LABEL "Quit"
endmenu
group ATTRS MUIA_Group_Columns 2
text help '"CreateAminetReadMe v1.2 by\nLorens Johansson (http://members.xoom.com/snorslex)\nIf you use this program, you are required to\nEmail the author (SnorsleX@SoftHome.net). Otherwise,\nhow is he supposed to know to keep supporting\nCreateAminetReadMe ?!?\n\033rLorens Johansson"' label "\033c\033bCreateAminetReadMe v1.2\033n\n\033cLorens Johansson\n\033cFreely Distributable Emailware"
text ICON '"CreateAminetReadMe"'
endgroup
endgroup
group REGISTER ATTRS MUIA_CycleChain 1 LABELS "Required,Additional,Other"
group HORIZ
group ATTRS MUIA_Group_Columns 2
label "Short:"
string ID SHORT ATTRS MUIA_CycleChain 1 MUIA_String_MaxLen 41 help '"The programs short description."'
label "Author:"
string ID AUTHO ATTRS MUIA_CycleChain 1 help '"The authors name and email."'
label "Uploader:"
string ID UPLOA ATTRS MUIA_CycleChain 1 help '"The uploaders name and email."'
label "Upload type:"
poplist ID ULTYP ATTRS MUIA_CycleChain 1 help '"In which directory your program will be put."' labels "
radio ID DIST ATTRS MUIA_CycleChain 1 help '"Which distribution method you want for your program."' labels "Ignore,NoCDs,Aminet"
endgroup
endgroup
group ATTRS MUIA_Group_Columns 2
label "Kurz:"
string ID KURZ ATTRS MUIA_CycleChain 1 help '"Short description. In GERMAN."'
label "Replaces:"
string ID REPLA ATTRS MUIA_CycleChain 1 help '"Enter the file that this file replaces on Aminet."'
label "Requires:"
string ID REQUI ATTRS MUIA_CycleChain 1 help '"Enter files that are required by your program."'
label "Version:"
string ID VERSI ATTRS MUIA_CycleChain 1 help '"The version of your program."'
endgroup
group
group ATTRS MUIA_Group_Columns 2
button ATTRS MUIA_CycleChain 1 help '"Edit your description."' COMMAND """c:ed t:car.desc""" PORT COMMAND LABEL "Edit description"
button ATTRS MUIA_CycleChain 1 help '"Delete your description."' COMMAND """c:delete t:car.desc quiet""" PORT COMMAND LABEL "Delete description"
endgroup
group ATTRS MUIA_Group_Columns 2
label "LHA Exe:"
popasl ID LHAEX ATTRS MUIA_CycleChain 1 ASLFR_DoPatterns 1 ASLFR_RejectIcons 1 ASLFR_TitleText "Select LHA executable..." help '"The path to lha and the executable."'
label "Archive:"
popasl ID ARC ATTRS MUIA_CycleChain 1 ASLFR_InitialPattern "#?.lha" ASLFR_DoPatterns 1 ASLFR_RejectIcons 1 ASLFR_TitleText "Select LHA archive..." help '"The path and name to the archive that you want to be listed in the ReadMe."'
endgroup
group ATTRS MUIA_Group_Columns 2
label "Write archive contents:"
cycle ID WARCC ATTRS MUIA_CycleChain 1 help '"Should the archive contents be written to the ReadMe?"' labels "Yes,No"
endgroup
endgroup
endgroup
group ATTRS MUIA_Group_Columns 3
label "Output ReadMe:"
popasl ID OUT ATTRS MUIA_CycleChain 1 ASLFR_DoPatterns 1 ASLFR_DoSaveMode 1 ASLFR_RejectIcons 1 ASLFR_TitleText "Save ReadMe..." help '"Choose where the ReadMe will be created/saved."'
button ID SAVE ATTRS MUIA_CycleChain 1 help '"Saves the ReadMe."' COMMAND """CreateAminetReadMe.rexx SAVE""" label "Save ReadMe"
label "Input ReadMe:"
popasl ID IN ATTRS MUIA_CycleChain 1 ASLFR_InitialPattern "#?.ReadMe" ASLFR_DoPatterns 1 ASLFR_RejectIcons 1 ASLFR_TitleText "Load ReadMe..." help '"Choose the ReadMe that should be loaded."'
button ID LOAD ATTRS MUIA_CycleChain 1 help '"Loads the chosen ReadMe."' COMMAND """CreateAminetReadMe.rexx LOAD""" label "Load ReadMe"
endgroup
group ATTRS MUIA_Group_Columns 5
button ID PREF ATTRS MUIA_CycleChain 1 help '"Saves the preferences."' COMMAND """CreateAminetReadMe.rexx PREFS""" label "Save Prefs"
space horiz
button ID ABT ATTRS MUIA_CycleChain 1 help '"Shows some info about CreateAminetReadMe."' COMMAND """CreateAminetReadMe.rexx ABOUT""" label "About"
space horiz
button ID QUIT ATTRS MUIA_CycleChain 1 help '"Quits CreateAminetReadMe."' COMMAND '"quit"' PORT CreateAminetReadMe label "Quit"
endgroup
endwindow
call LoadPrefs
Address CreateAminetReadMe
EXIT
Tags:
ASLFR_DoPatterns = 0x8008002E
ASLFR_DoSaveMode = 0x8008002C
ASLFR_InitialPattern = 0x8008000A
ASLFR_RejectIcons = 0x8008003C
ASLFR_TitleText = 0x80080001
MUIA_CycleChain = 0x80421ce7
MUIA_Group_Columns = 0x8042f416
MUIA_Group_Horiz = 0x8042536b
MUIA_Group_Rows = 0x8042b68f
MUIA_Menuitem_Title = 0x804218be
MUIA_Menuitem_Shortcut = 0x80422030
MUIA_Radio_Active = 0x80429b41
MUIA_Selected = 0x8042654b
MUIA_String_MaxLen = 0x80424984
MUIA_Window_Borderless = 0x80429b79
MUIA_Window_DepthGadget = 0x80421923
MUIA_Window_DragBar = 0x8042045d
MUIA_Window_ScreenTitle = 0x804234b0
MUIA_Window_SizeGadget = 0x8042e33d
MUIM_Application_AboutMUI = 0x8042d21d
MUIM_Application_OpenConfigWindow = 0x804299ba
TRUE = 1
FALSE = 0
Return 0
Save:
address CreateAminetReadMe
popasl ID OUT
OUTPUT = result
if OUTPUT = "" then do;say "You must enter where the ReadMe shall be created!";exit;end
string ID SHORT
SHORT = result
string ID AUTHO
AUTHO = result
string ID UPLOA
UPLOA = result
string ID VERSI
VERSI = result
poplist ID ULTYP
ULTYP = result
string ID KURZ
KURZ = result
string ID REPLA
REPLA = result
string ID REQUI
REQUI = result
radio ID DIST
DIST = result
if SHORT = "" then do;say "You must fill out the Short field!";exit;end
if AUTHO = "" then do;say "You must fill out the Author field!";exit;end
if UPLOA = "" then do;say "You must fill out the Uploader field!";exit;end
if ULTYP = "" then do;say "You must fill out the Upload Type field!";exit;end
call open(readme,OUTPUT,"w")
call writeln(readme,"Short: "||SHORT)
call writeln(readme,"Author: "||AUTHO)
call writeln(readme,"Uploader: "||UPLOA)
if VERSI ~= "" then call writeln(readme,"Version: "||VERSI)
call writeln(readme,"Type: "||ULTYP)
if KURZ ~= "" then call writeln(readme,"Kurz: "||KURZ)
if REPLA ~= "" then call writeln(readme,"Replaces: "||REPLA)
if REQUI ~= "" then call writeln(readme,"Required: "||REQUI)
if DIST ~= "Ignore" then call writeln(readme,"Distribution: "||DIST)
if exists("t:car.desc") = 1 then do
call writeln(readme,"")
call open(desc,"t:car.desc","r")
do until eof(desc)
line = readln(desc)
call writeln(readme,line)
end
call close(desc)
end
cycle ID WARCC
WARCC = result
if WARCC = "Yes" then do
popasl ID LHAEX
LHAEX = result
if LHAEX = "" then do;say "You must enter tha path to the lha executeable!";exit;end
if ~exists(LHAEX) then do;say "Could not find the LHA executable!";exit;end
popasl ID ARC
ARC = result
if ARC = "" then do;say "You must select the archive!";exit;end
if ~exists(ARC) then do;say "Could not find the archive!";exit;end
ADDRESS COMMAND LHAEX||" l "||ARC||" > T:lha.list"